package com.rt.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rt.system.mapper.RtExamPaperQuestionsMapper;
import com.rt.system.domain.RtExamPaperQuestions;
import com.rt.system.service.IRtExamPaperQuestionsService;

/**
 * 试卷试题关联Service业务层处理
 * 
 * @author Yg
 * @date 2022-05-09
 */
@Service
public class RtExamPaperQuestionsServiceImpl implements IRtExamPaperQuestionsService 
{
    @Autowired
    private RtExamPaperQuestionsMapper rtExamPaperQuestionsMapper;

    /**
     * 查询试卷试题关联
     * 
     * @param id 试卷试题关联主键
     * @return 试卷试题关联
     */
    @Override
    public RtExamPaperQuestions selectRtExamPaperQuestionsById(Long id)
    {
        return rtExamPaperQuestionsMapper.selectRtExamPaperQuestionsById(id);
    }

    /**
     * 查询试卷试题关联列表
     * 
     * @param rtExamPaperQuestions 试卷试题关联
     * @return 试卷试题关联
     */
    @Override
    public List<RtExamPaperQuestions> selectRtExamPaperQuestionsList(RtExamPaperQuestions rtExamPaperQuestions)
    {
        return rtExamPaperQuestionsMapper.selectRtExamPaperQuestionsList(rtExamPaperQuestions);
    }

    /**
     * 新增试卷试题关联
     * 
     * @param rtExamPaperQuestions 试卷试题关联
     * @return 结果
     */
    @Override
    public int insertRtExamPaperQuestions(RtExamPaperQuestions rtExamPaperQuestions)
    {
        return rtExamPaperQuestionsMapper.insertRtExamPaperQuestions(rtExamPaperQuestions);
    }

    /**
     * 修改试卷试题关联
     * 
     * @param rtExamPaperQuestions 试卷试题关联
     * @return 结果
     */
    @Override
    public int updateRtExamPaperQuestions(RtExamPaperQuestions rtExamPaperQuestions)
    {
        return rtExamPaperQuestionsMapper.updateRtExamPaperQuestions(rtExamPaperQuestions);
    }

    /**
     * 批量删除试卷试题关联
     * 
     * @param ids 需要删除的试卷试题关联主键
     * @return 结果
     */
    @Override
    public int deleteRtExamPaperQuestionsByIds(Long[] ids)
    {
        return rtExamPaperQuestionsMapper.deleteRtExamPaperQuestionsByIds(ids);
    }

    /**
     * 删除试卷试题关联信息
     * 
     * @param id 试卷试题关联主键
     * @return 结果
     */
    @Override
    public int deleteRtExamPaperQuestionsById(Long id)
    {
        return rtExamPaperQuestionsMapper.deleteRtExamPaperQuestionsById(id);
    }
}
